<script setup lang="ts">
import { ref } from "vue";
import DemoPropsChild from "./components/DemoPropsChild.vue";
const myMsg = ref("");
</script>
<template>
  <h1>defineProps</h1>
  <p>父组件传入参数到子组件，props 只能是单向的，子组件不能修改</p>
  <demo-props-child :msg="myMsg"></demo-props-child>
  输入要传递给子组件的参数：
  <input v-model="myMsg" />
</template>
